import {
  ORDER_STATUS
} from '../common/dictory';




/**
 * 订单 状态值
 * @param val
 * @returns {(string | null) | string}
 */
export function formatOrderStatus(code = '') {
  const itemObj = ORDER_STATUS.filter(item => item.key.toString() === code.toString())
  return itemObj[0] ? itemObj[0].label : ''
}
